package watercups.operators;

import templates.Operator;
import watercups.states.WaterCupState;

public class Empty1 implements Operator<WaterCupState>{
	
	public int getOperatorNumber(){
		return 3;
	}
	
	public boolean available(WaterCupState s){
		if(s.getCapacity1()>0)
			return true;
		else
			return false;
	}
	
	public WaterCupState execute(WaterCupState s){
		return new WaterCupState(0,s.getCapacity2());
	}
	
	public String toString(){
		return "Emptying first cup";
	}
}
